#ifndef _DevicesADC_H_
#define _DevicesADC_H_


/* 输出电压 */
#define ADC_CHANNEL_VOLTAGE_OUT         ADC_Channel_10
/* 电感电流 */
#define ADC_CHANNEL_CURRENT_OUT         ADC_Channel_4


typedef enum {
    /* 输出电压 */
    ADC_DMA_VOLTAGE_OUT = 1,
    /* 电感电流 */
    ADC_DMA_CURRENT_OUT,

    /* 最大的通道值 */
    ADC_DMA_SCAN_MAX,
} AdcDmaChannelEnum;


/* 采样扫描通道数量 */
#define ADC1_SAMPLING_CHANNEL           (ADC_DMA_SCAN_MAX - 1)
#define ADC2_SAMPLING_CHANNEL           1
/* 每通道采样次数 */
#define ADC1_SAMPLING_NUMBER            1
#define ADC2_SAMPLING_NUMBER            4
/* 采样时间 */
#define ADC1_SAMPLE_TIME                ADC_SampleTime_11Cycles
#define ADC2_SAMPLE_TIME                ADC_SampleTime_11Cycles


void vADCInit(void);
float fADCGetDMAValue(AdcDmaChannelEnum enumChannel);
int32_t iADCGetDMAValue(AdcDmaChannelEnum enumChannel);


#endif
